home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
windows5
/
v11n18.zip
/
WTIME.ZIP
/
WTISRC.ZIP
/
WTIME.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-27
|
4KB
|
122 lines
#include <windows.h>
#include <string.h>
#define IDM_FILE 1000
#define IDM_F_EXIT 1050
#define IDM_MODEM 2000
#define IDM_M_SETUP 2050
#define IDM_M_CALL 2100
#define IDM_M_HANGUP 2150
#define IDM_HELP 3000
#define IDM_H_PROCEDURES 3050
#define IDM_H_USINGHELP 3100
#define IDM_H_ABOUTWTIME 3200
#define IDM_CMD_CALLDONE 6000
#define IDM_CMD_DIALTIME 6001
#define IDM_CMD_WAITDATA 6002
#define IDM_CMD_PREBREAK 6003
#define IDM_CMD_POSTBREAK 6004
#define IDM_CMD_CALLQUIT 6005
#define IDM_CMD_AT_CMD 6006
#define IDM_CMD_FIRST_ESCAPE 6007
#define IDC_SETUPDLG_TIMEZONE 211
#define IDC_SETUPDLG_DAYLIGHT 212
#define IDC_SETUPDLG_DIALSTRING 213
#define IDC_SETUPDLG_COM1 214
#define IDC_SETUPDLG_COM2 215
#define IDC_SETUPDLG_COM3 216
#define IDC_SETUPDLG_COM4 217
#define IDC_SETUPDLG_DEFAULTS 218
#define IDC_SETUPDLG_HELPBUTTON 219
#define IDC_SETUPDLG_HELP 220
#define IDS_ERR_REGISTER_CLASS 1
#define IDS_ERR_CREATE_WINDOW 2
#define IDS_ERR_MULT_INSTANCES 3
#define IDS_ABOUT_CAPTION 4
#define IDS_MODEM_DIALSTRING 5
#define TZOFF_EST -300
#define TZOFF_CST -360
#define TZOFF_MTN -420
#define TZOFF_PST -480
#define HLP_WTIME_MEXIT 1001
#define HLP_WTIME_MSETUP 1002
#define HLP_WTIME_MCALL 1003
#define HLP_WTIME_MPROCS 1004
#define HLP_WTIME_MUSING 1005
#define HLP_WTIME_MABOUT 1006
#define HLP_WTIME_SDPORTS 1007
#define HLP_WTIME_SDDAYLT 1008
#define HLP_WTIME_SDDIALSTR 1009
#define HLP_WTIME_SDTIMZON 1010
#define HLP_WTIME_SDRESTDEF 1011
#define HLP_WTIME_SDSAVCNF 1012
#define HLP_WTIME_SDCANCEL 1013
#define HLP_WTIME_SDHELP 1014
#define HLP_WTIME_MHANGUP 1015
#define TIMER_TOTAL_CALLTIME 75
#define TIMER_TARGET_INACTIVE -1 /* time you'll never hit */
#define TIMER_NEVER_POST 0 /* cmd never to issue */
#define TIMER_FIRST_ESCAPE 3
#define TIMER_AT_CMD 3
#define TIMER_FIRST_RESET 3
#define TIMER_DIAL 3
#define TIMER_PREBREAK 3
#define TIMER_POSTBREAK 3
typedef struct{
char special;
char crlf;
char mjd[5];
char junk1;
char year[2];
char dash1;
char month[2];
char dash2;
char day[2];
char junk2;
char hour[2];
char colon1;
char minute[2];
char colon2;
char second[2];
char junk3[26];
char special2;
}
NISTDATA;
char szDisplayString[100],szDisplayString2[115];
char szString[256];
char szString2[256];
char szAppName[20]; /* class name for the window */
char szModemDialString[80];
char szFailString[100];
char szCommError[256];
char szHelpFile[20];
int iTimeOffset,iUseDaylightSavings,iComPort,iReadyToGo,iInHelp;
int iAutomatic=0,iThisRunFailed=1,iTimerCount=0,iHaveTimer=0,iInCall=0;
int iGotComPort=0,iWroteStatus=0,iTargetTime,iMustHangUp,iCleaningUp=0;
int iRowHeight;
WORD wTimedTargetCmdToPost,wEachSecondCmdToPost;
DWORD iEst,iCst,iMtn,iPst,iOther;
HWND hInst;
HWND hWndMain,hWndSetupDlg;
HMENU hMainMenu;
FARPROC oldfilter=NULL;
DCB dcb;
COMSTAT comstat;
void cwCenter(HWND,int);
LONG FAR PASCAL WndProc(HWND,WORD,WORD,LONG);
BOOL FAR PASCAL CONFIGMsgProc(HWND,WORD,WORD,LONG);
BOOL FAR PASCAL ABOUTMsgProc(HWND,WORD,WORD,LONG);
int nCwRegisterClasses(void);
void CwUnRegisterClasses(void);
void SetCallOption(void);
int iGetConfigurationInformation(void);
int iSetConfigurationInformation(void);
DWORD FAR PASCAL SetupDlgMsgHook(int nCode,WORD wParam,LPMSG lpMsg);
void UpdateStatusLine(void);
void UpdateStatusLineText(LPSTR string);
LPSTR init_comm_port(void);
void close_comm_port(void);
void FailCall(LPSTR failure);
void WaitSecondsCommand(int seconds,WORD command);
WORD MyGetProfileInt(LPSTR lpAppName,LPSTR lpKeyName,int nDefault);
int GetDisplayCommError(int nCid,COMSTAT FAR *lpStat);